package com.kvest.fragment_test.fragment;

import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created with IntelliJ IDEA.
 * User: r.belokon
 * Date: 07.03.13
 * Time: 17:59
 * To change this template use File | Settings | File Templates.
 */
public abstract class BaseFragmen extends Fragment {
    protected static final String LOG_TAG = "FragmenTest";

    @Override
    public void onAttach(Activity activity) {
        Log.d(LOG_TAG, this.getClass().getName() + " onAttach");
        super.onAttach(activity);
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        Log.d(LOG_TAG, this.getClass().getName() + " onCreate");
        super.onCreate(savedInstanceState);
    }

    @Override
    public abstract View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState);

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        Log.d(LOG_TAG, this.getClass().getName() + " onActivityCreated");
        super.onActivityCreated(savedInstanceState);
    }

    @Override
    public void onStart() {
        Log.d(LOG_TAG, this.getClass().getName() + " onStart");
        super.onStart();
    }

    @Override
    public void onResume() {
        Log.d(LOG_TAG, this.getClass().getName() + " onResume()");
        super.onResume();
    }

    @Override
    public void onPause() {
        Log.d(LOG_TAG, this.getClass().getName() + " onPause()");
        super.onPause();
    }

    @Override
    public void onStop() {
        Log.d(LOG_TAG, this.getClass().getName() + " onStop(");
        super.onStop();
    }

    @Override
    public void onDestroyView() {
        Log.d(LOG_TAG, this.getClass().getName() + " onDestroyView()");
        super.onDestroyView();
    }

    @Override
    public void onDestroy() {
        Log.d(LOG_TAG, this.getClass().getName() + " onDestroy()");
        super.onDestroy();
    }

    @Override
    public void onDetach() {
        Log.d(LOG_TAG, this.getClass().getName() + " onDetach()");
        super.onDetach();
    }
}
